<b>user:<br> <input type="text" name="user"/><br/>
pass:<br /> <input type="password" name="pass"/>
 <br/><br/> <input type="submit" name="submit" value="ADD"></b><br />

<?php
class User {
	
	private $user;
	private $password;


	
     public function setUser($user) {
        $this->user= $user;
    }
    
  
	public function setPassword($password){
		$this->email=($email);
	}
	
} 

if (isset($_POST["submit"])){
	
$user1=($_POST['user']);
$pass1=($_POST['pass']);

$user=new User;
$user->setUser($user1);

$passworrd=new User;
$password->setPassword($pass1);

session_start();


$_SESSION['arr'][] = $user;

echo $_SESSION['arr'];
}

?>
